<?php
    define("ROOT", dirname(__FILE__).'/..');
    if (false == isset($argv[1])) {
        echo "Need php_dir!\n";
        exit;
    }
    $PHP_DIR = $argv[1];
    require("$PHP_DIR/libs/framework/util/generatorassembly.php");
   
    $includePaths = array(
        ROOT.'/controllers',
        ROOT.'/interceptors',
        $PHP_DIR,
    );
    $excludePaths = array();
    
    $generator = new GeneratorAssembly(ROOT.'/assembly.php', $includePaths, $excludePaths);
    $generator->generate();
?>
